package testPage;

import common.SearchInput;
import common.User;
import org.junit.jupiter.api.Test;
import page.FrontPage;

import static org.junit.jupiter.api.Assertions.*;

class FrontPageTest {

    FrontPage frontPage = new FrontPage();

    @Test
    void search() throws InterruptedException {
        SearchInput input = new SearchInput("my");
        User user = new User("testUser", "h123");
        frontPage.Search(input, user);
    }




    @Test
    void getMessage() throws InterruptedException {
        User user = new User("testUser", "h123");
        frontPage.getMessage(user);
    }


    @Test
    void diffBoard() throws InterruptedException {
        User user = new User("testUser", "h123");
        frontPage.diffBoard(user);
        frontPage.close();
    }

}